
# export GCCGO=
#export LD_LIBRARY_PATH=/home/jack/project/golang/src/test/modemhandle
echo "#### build arm64 modems_arm "
GOOS=linux \
GOARCH=arm64 \
CGO_ENABLED=1 \
go build -compiler=gccgo -gccgoflags "-s -w" -o bocd_arm64 main.go

echo "#### cp modems_arm  /mnt/d/tftp_downloadFile/gofile"
#cp modems_arm  /mnt/d/tftp_downloadFile/gofile


echo "#### build mipsle modems_mipsle "
GOOS=linux \
GOARCH=mipsle \
CGO_ENABLED=0 \
GOMIPS=softfloat \
go build -ldflags "-s -w" -o bocd_mipsle main.go

echo "#### cp modems_mipsle  /mnt/d/tftp_downloadFile/gofile"
#cp modems_mipsle  /mnt/d/tftp_downloadFile/gofile


#echo "#### build mipsle for gccgo modems_mipsle_gccgo "
##export GOOS=linux
##export GOARCH=mips
##export GCCGO=/usr/bin/mipsle-linux-gnu-gccgo
##export LD_LIBRARY_PATH=/opt/gccgo/lib64
##GOOS=linux \
##GOARCH=mipsle \
##CGO_ENABLED=0 \
##GOMIPS=softfloat \
#GOOS=linux GOARCH=mipsle CGO_ENABLED=0 GCCGO=/usr/bin/mipsel-linux-gnu-gccgo go build -compiler=gccgo -gccgoflags="-static" -o modems_mipsle_gccgo main.go
#cp modems_mipsle_gccgo  /mnt/d/tftp_downloadFile/gofile

echo "#### build main for linux"
GOOS=linux \
GOARCH=amd64 \
CGO_ENABLED=0 \
go build -ldflags "-s -w" -o bocd main.go
# cp main  /mnt/d/tftp_downloadFile/gofile
